Repository navigation
fix: cleaner user facing error handing and tests for config file points of failure - #620
Conversation
24be881 to
02dfe31
Compare
|
This is ready for review! Here I focused on various errors a user may encounter running initial commands so it looks at things like malformed json, bad config, missing readme, etc etc. i also added some friendlier messaging around errors and checked those in our tests too. I think the next round of tests will be related to mocking. i haven't been tracking these with issues but I will start doing that now. |
|
This will need to be rebased, following the re-organization of ci jobs. |
6052f68 to
644e737
Compare
|
@michaelfaith rebase is complete! thanks! |
test: add await so error reach CLI error handler and throw proper returns chore: lint ci: add e2e to ci test: add test and cleaner message for when json file is missing test: cleanup unit test to check for UserError and match message
644e737 to
0a74580
Compare
🤖 I have created a release *beep* *boop* --- ## [7.0.2](v7.0.1...v7.0.2) (2026-11-12) ### 🩹 Bug Fixes * cleaner user facing error handling and tests for config file points of failure ([#620](#620)) ([0022c2e](0022c2e)) * Readme error message should be user friendly not a quiet fail ([#617](#617)) ([9c378f9](9c378f9)) * run git commands without a shell ([#588](#588)) ([f9d3ee2](f9d3ee2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: a-c-slater[bot] <354703433+a-c-slater[bot]@users.noreply.github.com>
closes #642 this builds on #620 so i'll open as a draft and then when that merges, open this one. **What**: This pr makes a small change to run-cli.js to allow us to capture the output of `all-contributors` which displays a prompt that the user needs to respond to (so it intentionally hangs) . To make sure the user sees a prompt we force a "break" when text output is rendered on the screen and make sure the text that we expect is there. **Why**: Cause tests are good. 🙃 **How**: - [ ] Documentation - [x] Tests - [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? --> - [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions --> <!-- feel free to add additional comments -->
|
@all-contributors please add lwasser for code.
|
This PR adds e2e tests for points of failure when config files like the json file don't exist. here we raise a UserError and make the unit tests associated with it a bit more explicit too. this pr is built on #616 #617 .